//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.aidong.model.wills;

import java.io.Serializable;

public class BoxCodePK implements Serializable {
    protected String shopCode;
    protected String code;

    public BoxCodePK() {
    }

    public BoxCodePK(String shopCode, String code) {
        this.shopCode = shopCode;
        this.code = code;
    }

    public String getShopCode() {
        return this.shopCode;
    }

    public void setShopCode(String shopCode) {
        this.shopCode = shopCode;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public boolean equals(Object o) {
        if(this == o) {
            return true;
        } else if(o != null && this.getClass() == o.getClass()) {
            BoxCodePK boxCodePK = (BoxCodePK)o;
            if(this.code != null) {
                if(!this.code.equals(boxCodePK.code)) {
                    return false;
                }
            } else if(boxCodePK.code != null) {
                return false;
            }

            if(this.shopCode != null) {
                if(this.shopCode.equals(boxCodePK.shopCode)) {
                    return true;
                }
            } else if(boxCodePK.shopCode == null) {
                return true;
            }

            return false;
        } else {
            return false;
        }
    }

    public int hashCode() {
        int result = this.shopCode != null?this.shopCode.hashCode():0;
        result = 31 * result + (this.code != null?this.code.hashCode():0);
        return result;
    }
}
